package com.example.doer.reading;

import java.io.Serializable;

/**
 * Created by 严旭江 on 2017/7/13.
 */

public class TopicReply implements Serializable{

    private int topicID;//回复所对应话题的ID--->也可自增



    private int replyID;//reply的ID--->自增
    //建表时  用replyID与topicID联合主键
    private int userID;//该回复所对应的用户ID
    private int replyToReplyID;//评论之间相互评论的ID  如果是-1 则说名是回复话题 如果>=0则说明是回复评论
    private String userName;//回复的用户名
    private int resID;//用户头像的ID
    private String replyContent;//回复的内容
    private int favoCount;//赞同数
    private int dislikeCount;//反对or没有帮助数目
    private int replyCount;//回复数目

    public TopicReply(int theTopicID,String theReplyUserName,int theReplyID,String theReplyContent){
        userName = theReplyUserName;
        topicID = theTopicID;
        replyID = theReplyID;
        replyToReplyID = -1;
        replyContent = theReplyContent;
        favoCount = 0;dislikeCount = 0; replyCount = 0;
    }

    public int getReplyID() {
        return replyID;
    }
    public void setReplyID(int replyID) {
        this.replyID = replyID;
    }
    public int getReplyToReplyID() {
        return replyToReplyID;
    }
    public void setReplyToReplyID(int replyToReplyID) {
        this.replyToReplyID = replyToReplyID;
    }
    public int getDislikeCount() {
        return dislikeCount;
    }
    public void setDislikeCount(int dislikeCount) {
        this.dislikeCount = dislikeCount;}
    public int getTopicID() {
        return topicID;
    }
    public void setTopicID(int theTopicID) {
        topicID = theTopicID;
    }
    public int getUserID() {
        return userID;
    }
    public void setUserID(int userID) {
        this.userID = userID;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public int getResID() {
        return resID;
    }
    public void setResID(int resID) {
        this.resID = resID;
    }
    public String getReplyContent() {
        return replyContent;
    }
    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }
    public int getFavoCount() {
        return favoCount;
    }
    public void setFavoCount(int favoCount) {
        this.favoCount = favoCount;
    }
    public int getReplyCount() {
        return replyCount;
    }
    public void setReplyCount(int replyCount) {
        this.replyCount = replyCount;
    }


}
